local thbattle__leimi_hongmo = fk.CreateSkill {

  name = "thbattle__leimi_hongmo",

  tags = { Skill.Compulsory, },

}



thbattle__leimi_hongmo:addEffect(fk.Damage, {
  anim_type = "offensive",
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(thbattle__leimi_hongmo.name) and data.card and data.card.trueName == "slash" and
        data.card.color == Card.Red
  end,
  on_use = function(self, event, target, player, data)
    local room = player.room
    room:recover({
      who = player,
      num = 1,
      recoverBy = player,
      skillName = thbattle__leimi_hongmo.name
    })
  end,
})

thbattle__leimi_hongmo:addEffect("targetmod", {
  bypass_distances = function(self, player, skill, card, to)
    return player:hasSkill(thbattle__leimi_hongmo.name) and card.trueName == "slash" and card.color == Card.Red
  end
})

return thbattle__leimi_hongmo